from typing import Callable
import keyboard

def addKeyboardListener(key: str, callback: Callable[[], bool]):
    keyboard.add_hotkey(hotkey=key, callback=callback)